package me.linczh.framework.action;

import java.util.Map;

public class ActionItem {
	private String actionName;
	private String actionClass;
	private String actionMethod;
	@SuppressWarnings("rawtypes")
	private Map<String, Map> resultMap;
	
	public ActionItem() {}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public String getActionClass() {
		return actionClass;
	}

	public void setActionClass(String actionClass) {
		this.actionClass = actionClass;
	}

	public String getActionMethod() {
		return actionMethod;
	}

	public void setActionMethod(String actionMethod) {
		this.actionMethod = actionMethod;
	}

	@SuppressWarnings("rawtypes")
	public Map<String, Map> getResultMap() {
		return resultMap;
	}

	@SuppressWarnings("rawtypes")
	public void setResultMap(Map<String, Map> resultMap) {
		this.resultMap = resultMap;
	}
	
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("{actionname=" +
				actionName + ", actionmethod=" +
				actionMethod + ", actionclass=" + 
				actionClass + ", result=" +
				resultMap);
		return buffer.toString();
	}
}
